package com.yykj.hospital.server.model.repository;

import com.yykj.hospital.server.model.entity.HospitalDoctorBindLabel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalDoctorBindLabelRepository extends JpaRepository<HospitalDoctorBindLabel,Integer>, JpaSpecificationExecutor<HospitalDoctorBindLabel> {

    List<HospitalDoctorBindLabel> findAllByHospitalIdAndDoctorIdIn(Integer hospitalId,List<String> doctorIds);

    List<HospitalDoctorBindLabel> findAllByHospitalId(Integer hospitalId);

}
